<template>
	<view class="cu-card dynamic" >
			<view class="cu-item shadow">	 
				<view class="text-content" style="text-align: center; padding-top: 20px;margin-bottom:0px; padding-bottom: 0px;">
					 请向物业出示通行证二维码
				</view>

				<view class="grid flex-sub padding-lr col-1" >
					<image style="width: 100%;" mode="widthFix"  :src="show_qrcode_url"></image>
				   
				</view>
				


			</view>
		 
		</view>
</template>

<script>
	import beeApp from '../../beeApp.js'
	
	export default {
		data() {
			return {
				 
				 
				user_info:{
					
				},
				show_qrcode_url:'',
				id:0,
				loadding:0,
				loadding1:0,
			}
		},
		onLoad(option) {
			this.id = option.id;
			this.store_id = option.store_id
          // beeApp.alert("yiqwyei");
		  
		  this.getVisitorPic();
		   beeApp.getUserInfo((userInfo)=>{
			  this.user_info = userInfo;
		  })
		},
		methods: {
			   getVisitorPic:function(){
                   var url = beeApp.data.apiHost+"/qrcode/wuye/visitor/"+this.store_id+"/?id="+this.id;
                   this.show_qrcode_url= beeApp.data.apiHost+"/api/index/urlQRcode?url="+encodeURIComponent(url);
               }	
	}
		
}
</script>
